<?php


namespace app\index\controller;


use think\api\Client;
use think\Controller;

class Sms extends Controller
{

    public function requestSms()
    {

        $client = new Client("8587c559a453d8c3211fa5169676baf1");

        $result = $client->smsSend()
            ->withSignId('6')
            ->withTemplateId('2')
            ->withPhone('13073101997')
            ->withParams('{"code": "666666"}')
            ->request();
        dump($result);

    }


}